home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / renderTests / primitives_with_multiAppearance.wrl < prev    next >
Text File  |  2000-09-07  |  3KB  |  109 lines

  1. #VRML V2.0 utf8
  2. Transform {
  3.   translation    -5 0 0 
  4.   children    Shape {
  5.     appearance    DEF DIFF_MAP_MULTI_APPEARANCE MultiAppearance {
  6.       material    Material {        diffuseColor .8 .8 .8        specularColor 1 0 0        shininess 0.7
  7.       }
  8.       diffuseMap DiffuseMap {
  9.         texture    ImageTexture {
  10.                 url    "../images/shared/sky.gif"
  11.         }      }
  12.     }
  13.     geometry    Box {
  14.     }
  15.  
  16.   }
  17. }
  18. Transform {
  19.   translation    -2 0 0
  20.   children    Shape {
  21.     appearance    DEF WIRE_WITH_HILITE_MULTI_APP MultiAppearance {
  22.       material    Material {        diffuseColor .8 .8 .8        specularColor 1 0 0        shininess 0.7
  23.       }
  24.       wire true    }
  25.     geometry    DEF TOP_CONE Cone {
  26.     }  }
  27. }
  28. Transform {
  29.   translation 1 0 0  children    Shape {
  30.     appearance    DEF SOLID_WITH_HILITE_MULTI_APPEARANCE MultiAppearance {
  31.       material    Material {
  32.         diffuseColor .8 .8 .8        specularColor 1 0 0        shininess 0.7
  33.       }
  34.     }
  35.     geometry    DEF TOP_CYLINDER Cylinder {
  36.     }
  37.  
  38.   }
  39. }
  40. Transform {
  41.   translation 4 0 0    children    Shape {
  42.     appearance    USE DIFF_MAP_MULTI_APPEARANCE 
  43.     geometry    Sphere {
  44.     }
  45.   }
  46. }
  47. Transform {
  48.   translation    -5 -3 0 
  49.   children    Shape {
  50.     appearance    USE DIFF_MAP_MULTI_APPEARANCE 
  51.     geometry    Box {    }
  52.  
  53.   }
  54. }
  55. DEF myPanorama Panorama {
  56.     bilinearFilteringEnabled FALSE
  57.     environmentCubeMap DEF envMap EnvironmentCubeMap {
  58.         frontTexture ImageTexture { url "../images/envmap_haze/front.jpg" }
  59.         rightTexture ImageTexture { url "../images/envmap_haze/right.jpg" }
  60.         backTexture ImageTexture { url "../images/envmap_haze/back.jpg" }
  61.         leftTexture ImageTexture { url "../images/envmap_haze/left.jpg" }
  62.         upTexture ImageTexture { url "../images/envmap_haze/up.jpg" }
  63.         downTexture ImageTexture { url "../images/envmap_haze/down.jpg" }
  64.     }
  65. }
  66. Transform {
  67.   translation    -2 -3 0
  68.   children    Shape {
  69.     appearance    DEF BUMP_MAP_MULTI_APPEARANCE MultiAppearance {
  70.       material    Material {        diffuseColor .8 .8 .8        specularColor 1 0 0        shininess 0.7
  71.       }
  72.       diffuseMap DiffuseMap {
  73.         texture    ImageTexture {
  74.                 url    "../images/shared/sky.gif"
  75.         }      }
  76.       bumpLevelMap BumpLevelMap {
  77.         texture    ImageTexture {
  78.                 url    "../images/shared/sky.gif"
  79.         }      }    }    
  80.     geometry    Cone {    }
  81.  
  82.   }
  83.  
  84. }
  85. Transform {
  86.   translation 1 -3 0  children    Shape {
  87.     appearance    DEF ALPHA_MAP_MULTI_APPEARANCE MultiAppearance {
  88.       material    Material {        diffuseColor .8 .8 .8        specularColor 1 0 0        shininess 0.7
  89.       }
  90.       diffuseMap DiffuseMap {
  91.         texture    ImageTexture {
  92.                 url    "../images/shared/sky.gif"
  93.         }      }
  94.       opacityLevelMap OpacityLevelMap {
  95.         texture    ImageTexture {
  96.                 url    "../images/shared/sky.gif"
  97.         }      }    }    geometry    Cylinder {    }
  98.  
  99.   }
  100. }
  101. Transform {
  102.   translation 4 -3 0    children    Shape {
  103.     appearance    DEF ENV_MAP_MULTI_APPEARANCE MultiAppearance {
  104.       environmentMap USE envMap
  105.     }    
  106.     geometry    Sphere {    }
  107.   }
  108. }
  109.